package com.ruoyi.product_category.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.product_category.mapper.Product_categoryMapper;
import com.ruoyi.product_category.domain.Product_category;
import com.ruoyi.product_category.service.IProduct_categoryService;

/**
 * 商品分类区Service业务层处理
 * 
 * @author 张富饶
 * @date 2025-05-18
 */
@Service
public class Product_categoryServiceImpl implements IProduct_categoryService 
{
    @Autowired
    private Product_categoryMapper product_categoryMapper;

    /**
     * 查询商品分类区
     * 
     * @param id 商品分类区主键
     * @return 商品分类区
     */
    @Override
    public Product_category selectProduct_categoryById(Long id)
    {
        return product_categoryMapper.selectProduct_categoryById(id);
    }

    /**
     * 查询商品分类区列表
     * 
     * @param product_category 商品分类区
     * @return 商品分类区
     */
    @Override
    public List<Product_category> selectProduct_categoryList(Product_category product_category)
    {
        return product_categoryMapper.selectProduct_categoryList(product_category);
    }

    /**
     * 新增商品分类区
     * 
     * @param product_category 商品分类区
     * @return 结果
     */
    @Override
    public int insertProduct_category(Product_category product_category)
    {
        return product_categoryMapper.insertProduct_category(product_category);
    }

    /**
     * 修改商品分类区
     * 
     * @param product_category 商品分类区
     * @return 结果
     */
    @Override
    public int updateProduct_category(Product_category product_category)
    {
        return product_categoryMapper.updateProduct_category(product_category);
    }

    /**
     * 批量删除商品分类区
     * 
     * @param ids 需要删除的商品分类区主键
     * @return 结果
     */
    @Override
    public int deleteProduct_categoryByIds(Long[] ids)
    {
        return product_categoryMapper.deleteProduct_categoryByIds(ids);
    }

    /**
     * 删除商品分类区信息
     * 
     * @param id 商品分类区主键
     * @return 结果
     */
    @Override
    public int deleteProduct_categoryById(Long id)
    {
        return product_categoryMapper.deleteProduct_categoryById(id);
    }
}
